package structural.adapter.object;

/**
 * @ClassName: SanDiskTF
 * @Description: 闪迪TF卡
 * @Author: liu-hao
 * @Date: 2023-04-11 11:31
 * @Version: 1.0
 **/
public class SanDiskTF implements TFCard {

    String tfData = "";

    public SanDiskTF(String tfData) {
        this.tfData = tfData;
    }

    @Override
    public String readTF() {
        System.out.println("TFCard read data: " + this.tfData);
        return this.tfData;
    }

    @Override
    public void writeTF(String data) {
        System.out.println("TFCard write data :" + data);
        this.tfData = data;
    }

}
